linux 添加开机启动脚本 测试环境centos7 使用rc.local文件添加开机启动 1 2 3#编辑rc.local文件 echo 'bash <你的脚本路径>' >> /etc/rc.d/rc.local chmod +x /etc/rc.d/rc.local